
export default {
  data() {
    return {
      fieldList: [
        { name: '标题', field: 'field1' },
        { name: '供应商编号', field: 'field2' },
        { name: '供应商', field: 'field3' },
        { name: '供应商产品类别', field: 'field4' }
      ],
      
      supplierStatusOption: [
        { label: '潜在供应商', value: '1' },
        { label: '准入供应商', value: '2' },
        { label: '淘汰供应商', value: '3' },
        { label: '合格供应商', value: '4' },
      ],
      supplierStatusEnum: {
        '1': '潜在供应商',
        '2': '准入供应商',
        '3': '淘汰供应商',
        '4': '合格供应商',
      },

      approveStatusOption: [
        { label: '待审批', value: '1' },
        { label: '审批中', value: '2' },
        { label: '已完成', value: '3' },
        { label: '已驳回', value: '4' }
      ],
      approveStatusEnum: {
        '1': '待审批',
        '2': '审批中',
        '3': '已完成',
        '4': '已驳回',
      },

      columns: [
        { title: '序号', width: 50, customRender: (text, record, index) => `${index + 1}`, align: 'center', },
        { title: '供应商状态', dataIndex: 'supplierStatus', width: 100, scopedSlots: { customRender: 'supplierStatus' }, ellipsis: true },
        { title: '创建时间', dataIndex: 'createTime', width: 120, scopedSlots: { customRender: 'date' }, ellipsis: true },
        { title: '审批状态', dataIndex: 'approveStatus', width: 100, scopedSlots: { customRender: 'approveStatus' }, ellipsis: true },
        { title: '供应商', dataIndex: 'supplierName', width: 220, ellipsis: true },
        { title: '供应商产品类别', dataIndex: 'supplierProductType', width: 150, ellipsis: true },
        { title: '主要供应产品', dataIndex: 'nainSupplyProduct', width: 150, ellipsis: true },
        { title: '资质证件', dataIndex: 'qualificationCertificate', width: 100, scopedSlots: { customRender: 'qualificationCertificate' }, ellipsis: true },
        { title: '验厂考察', dataIndex: 'factoryInspectionVisit', width: 100, scopedSlots: { customRender: 'factoryInspectionVisit' }, ellipsis: true },
        { title: '样品认证', dataIndex: 'sampleCertification', width: 100, scopedSlots: { customRender: 'sampleCertification' }, ellipsis: true },
        { title: '供应商编号', dataIndex: 'supplierCode', width: 150, ellipsis: true },
        { title: '企业规模', dataIndex: 'enterpriseScale', width: 100, ellipsis: true },
        { title: '年营收', dataIndex: 'annualRevenue', width: 100, scopedSlots: { customRender: 'amount' }, ellipsis: true },
        { title: '联系地址', dataIndex: 'contactAddress', width: 220, ellipsis: true },
        { title: '等级', dataIndex: 'level', width: 100, ellipsis: true },
        { title: '企业名称', dataIndex: 'enterpriseName', width: 220, ellipsis: true },
        { title: '纳税人识别号', dataIndex: 'taxpayerNumber', width: 150, ellipsis: true },
        { title: '企业状态', dataIndex: 'enterpriseStatus', width: 100, scopedSlots: { customRender: 'enterpriseStatus' }, ellipsis: true },
        { title: '成立时间', dataIndex: 'setUpTime', width: 120, scopedSlots: { customRender: 'date' }, ellipsis: true },
        { title: '法定代表人', dataIndex: 'legalRepresentative', width: 120, ellipsis: true },
        { title: '注册资本', dataIndex: 'registeredCapital', width: 120, ellipsis: true },
        { title: '实缴资本', dataIndex: 'paidCapital', width: 120, ellipsis: true },
        { title: '企业性质', dataIndex: 'enterpriseNature', width: 150, ellipsis: true },
        { title: '工商信息更新时间', dataIndex: 'icInfoUpdateTime', width: 150, scopedSlots: { customRender: 'date' }, ellipsis: true },
        { title: '注册地址', dataIndex: 'registeredAddress', width: 220, ellipsis: true },
        { title: '经营范围', dataIndex: 'businessScope', width: 300, ellipsis: true },
        { title: '企业查询结果', dataIndex: 'enterpriseQueryResult', width: 300, ellipsis: true },
        { title: '查询渠道', dataIndex: 'inquiryChannel', width: 120, ellipsis: true },
        { title: '操作', dataIndex: 'action', width: 150, align: 'center', fixed: 'right', scopedSlots: { customRender: 'action' } }
      ]
    }
  }
}